import request from '@/utils/request'

// 查询运货人所属用户列表
export function listFreight_user(query) {
  return request({
    url: '/source/freight_user/list',
    method: 'get',
    params: query
  })
}

// 查询运货人所属用户详细
export function getFreight_user(id) {
  return request({
    url: '/source/freight_user/' + id,
    method: 'get'
  })
}

// 新增运货人所属用户
export function addFreight_user(data) {
  return request({
    url: '/source/freight_user',
    method: 'post',
    data: data
  })
}

// 修改运货人所属用户
export function updateFreight_user(data) {
  return request({
    url: '/source/freight_user',
    method: 'put',
    data: data
  })
}

// 删除运货人所属用户
export function delFreight_user(id) {
  return request({
    url: '/source/freight_user/' + id,
    method: 'delete'
  })
}
